home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
cgraphix
/
kgotoxy.c
< prev
next >
Wrap
Text File
|
1986-05-07
|
413b
|
23 lines
/* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
#include <stdio.h>
#define EXTERN extern
#include <typedef.h>
void GotoXY(x, y)
int x, y;
{
if (GrafModeGlb) {
XTextGlb = x;
YTextGlb = y;
}
else { /* bios calls to move cursor */
struct regval reg;
reg.ax = 0x0200;
reg.bx = 0;
reg.dx = 256 * x + y;
sysint(0x10, ®, ®);
}
}